package com.gzh.check1.exception;

import com.gzh.check1.common.api.IErrorCode;

/**
 * @Description 断言处理类，用于抛出各种API异常
 * @Author gzh
 * @Date 2020/10/24 22:40
 */

public class Asserts {

    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }


}
